Skip to content

Conversation

@NBZ4live
Copy link

Sometimes it is useful to override some of the options per page basis.

This pull request makes it possible by allowing to override them when calling it as follows:

window.callPhantom({
    event: 'takeShot',
    options: {
        shotSize: {
            width: document.getElementsByTagName('html')[0].offsetWidth,
            height: document.getElementsByTagName('html')[0].offsetHeight
        }
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant